package com.bsj.power.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bsj.power.common.def.entity.Scene;
import com.bsj.power.common.def.vo.DeviceSceneIdPOJO;
import com.bsj.power.common.def.vo.SceneVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description
 * @Author zhaoyang
 * @Date 2024/5/11 14:44
 */
@Mapper
@Repository
public interface SceneMapper extends BaseMapper<Scene> {


    List<Long> selectDeviceIdsBySceneId(Integer sceneId);

//    List<SceneVO> findSceneBindByDeviceIds(@Param("list") List<Long> deviceIds);

    List<DeviceSceneIdPOJO> findDeviceSceneIdPOJOBySceneIds(@Param("list") List<Integer> sceneIds);


    List<Integer> selectSceneIdByPid(Integer sceneId);

    List<Scene> selectSceneSByBuilding(int i);

//    /**
//     * 根据国标设备数据库id删除绑定关系
//     * @param did
//     */
//    void deleteByDid(String did);
}
